package com.cavy.platform.server.domain.message;

import com.cavy.platform.server.domain.job.Job;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author 唐旭
 * @Date 2018/7/25
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class JobDispatchMessage extends Message {
    private Job job;

    public JobDispatchMessage() {
        type = this.getClass().getSimpleName();
    }

    public JobDispatchMessage(Job job) {
        type = this.getClass().getSimpleName();
        this.job = job;
    }
}
